package com.lindroy.jetpacknotes.lifecycle.lifecycle_ui.new_way

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.lindroy.jetpacknotes.R

class LifecycleActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_lifecycle)
        //注册监听 LocationListener
        lifecycle.addObserver(LocationListener())
    }
}